<?php

namespace Acme\DemoBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Acme\DemoBundle\Entity\Newss
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class Newss
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * 
     * @ORM\ManyToOne(targetEntity="Category", inversedBy="mewss")
	 * @ORM\JoinColumn(name="cat", referencedColumnName="id")
     * 
     */
    public $cat;

    /**
     * @var text $body
     * 
     * @ORM\Column(name="body", type="text")
     */
    private $body;

    /**
     * @var string $title
     *
     * @ORM\Column(name="title", type="string", length=300)
     */
    private $title;

    /**
     * @var date $created
     *
     * @ORM\Column(name="created", type="date")
     */
    private $created;

    /**
     * @var string $keywords
     *
     * @ORM\Column(name="keywords", type="string", length=300)
     */
    private $keywords;
	
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set cat
     *
     * @param integer $cat
     */
    public function setCat($cat)
    {
        $this->cat = $cat;
    }

    /**
     * Get cat
     *
     * @return integer 
     */
    public function getCat()
    {
        return $this->cat;
    }

    /**
     * Set body
     *
     * @param text $body
     */
    public function setBody($body)
    {
        $this->body = $body;
    }

    /**
     * Get body
     *
     * @return text 
     */
    public function getBody()
    {
        return $this->body;
    }

    /**
     * Set title
     *
     * @param string $title
     */
    public function setTitle($title)
    {
        $this->title = $title;
    }

    /**
     * Get title
     *
     * @return string 
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Set created
     *
     * @param date $created
     */
    public function setCreated($created)
    {
        $this->created = $created;
    }

    /**
     * Get created
     *
     * @return date 
     */
    public function getCreated()
    {
        return $this->created;
    }

    /**
     * Set keywords
     *
     * @param string $keywords
     */
    public function setKeywords($keywords)
    {
        $this->keywords = $keywords;
    }

    /**
     * Get keywords
     *
     * @return string 
     */
    public function getKeywords()
    {
        return $this->keywords;
    }
}